home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / amigalib / makefile.sas < prev    next >
Encoding:
Makefile  |  1993-12-30  |  2.6 KB  |  101 lines

  1. #-----
  2. #
  3. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  4. # is sourced from several directories relative path specification will
  5. # be simple wrong.
  6. #
  7.  
  8. SRC_DIR = Work:T/Irit
  9. #
  10. # All libraries created will be installed into the LIB_DIR directory.
  11. #
  12. LIB_DIR = $(SRC_DIR)/lib
  13.  
  14. #
  15. # All includes files associated with the installed libraries will be
  16. # installed into the INC_DIR directory.
  17. #
  18. INC_DIR = $(SRC_DIR)/inc
  19.  
  20. #
  21. # All binaries created will be installed into the BIN_DIR directory.
  22. #
  23. BIN_DIR = $(SRC_DIR)/bin
  24.  
  25. #
  26. # Uncomment the correct set of variables to be used or modify it for
  27. # your system.
  28. #
  29. # -D flags:
  30. #
  31. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  32. #
  33. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  34. #    be used.
  35. #
  36. #  Emulation to the following function are available by defining the
  37. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  38. # -DGETCWD - if getcwd is not defined in this system.
  39. # -DSTRSTR - if strstr is not defined in this system.
  40. # -DSTRDUP - if strdup is not defined in this system.
  41. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  42. #
  43. # -DTIMES - if times is defined in your system, otherwise uses time.
  44. #
  45. # -DRAND - if the (s)rand random number generator exists.
  46. # -DRAND48 - ?rand48 random number generators exists.
  47. #    If non of RAND or RAND48 are defined, (s)random is used.
  48. #
  49. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  50. #
  51. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  52. #    varargs.h.
  53. #
  54. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  55. #
  56. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  57. #
  58. # Other, possibly useful defines (for c code development):
  59. #
  60. # -DDEBUG - for some debugging functions in the code (that can be invoked
  61. #        from a debugger).
  62. #
  63.  
  64. #
  65. # Flags for Amiga using SAS/C
  66. #
  67. # Use DEFINE=M68881 if you have a 68881/68882/68040
  68. # Use DEFINE=MIEEE if you want to use the IEEE math library
  69. # Use DEFINE=MFFP if you want to use the FFP math library
  70. #
  71. CC = sc
  72. DFLAGS = DEFINE=M68881 DEFINE=RAND48
  73. CFLAGS = $(DFLAGS) CPU=68040 MATH=68882 NOSTACKCHECK STRMERGE IGNORE=79
  74. MORELIBS = 
  75. GRAPDRVS =nuldrvs amidrvs
  76.  
  77. #
  78. # Default rule for compilation.
  79. #
  80. .c.o:
  81.     $(CC) $(CFLAGS) IDIR= IDIR=$(INC_DIR) IDIR=$(SRC_DIR)/amigalib $<
  82.  
  83. #
  84. # All libraries.
  85. LIBS = $(LIB_DIR)/geom.lib $(LIB_DIR)/prsr.lib $(LIB_DIR)/cagd.lib\
  86.        $(LIB_DIR)/misc.lib #$(LIB_DIR)/gif.lib
  87. #-----
  88.  
  89. #
  90. # No amiga-specific files required for SAS/C
  91. #
  92. #OBJS = 
  93. #
  94. #amg.lib: $(OBJS)
  95. #    oml amg.lib r $(OBJS)
  96.  
  97. install: #amg.lib
  98.     #Copy CLONE amg.lib $(LIB_DIR)
  99.     #Delete amg.lib
  100.     @echo "OK"
  101.